define(function (require, exports, module) {

    var mixins = {
        data: function () {
            return {
                needLogin: true,
                ticket: sessionStorage.getItem('ticket')
            }
        },
        methods: {
            loginOut: function () {
                alert("登出");
                // sessionStorage.removeItem('ticket');
                // top.window.location = "http://localhost/page/01_login.html"
            },
            login: function () {
                alert("登陆成功");
                // sessionStorage.setItem('ticket', "abcdefg");
            }
        }
    };

    module.exports = mixins;

});

